import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [

  // 服务
  { path: 'data_sprite_mis', loadChildren: 'src/app/module/map/map/scheme/sprite/sprite.directory.module#SpriteDirectoryModule' },
  { path: 'data_style_mis', loadChildren: 'src/app/module/map/map/scheme/style/map.style.module#MapStyleModule' },
  { path: 'data_styleinfo_mis', loadChildren: 'src/app/module/map/map/scheme/style/map.styleInfo.module#MapStyleInfoModule' },
  { path: 'data_directory_mis', loadChildren: 'src/app/module/map/map/scheme/directory/style.directory.module#StyleDirectoryModule' },
  { path: 'data_data_mis', loadChildren: 'src/app/module/map/map/service/data/service.data.module#ServiceDataModule' },
  { path: 'data_service_mis', loadChildren: 'src/app/module/map/map/service/service/map.service.module#MapServiceModule' },
  // 服务 - 数据规范
  { path: 'data_dictionary_mis', loadChildren: 'src/app/module/form/data/dictionary/data.dictionary.module#DataDictionaryModule' },
  { path: 'data_dictionarydir_mis',
    loadChildren: 'src/app/module/form/data/dictionary/data.directory.module#DataDictionaryDirectoryModule' },
  { path: 'data_metadata_mis', loadChildren: 'src/app/module/form/data/metadata/data.metadata.module#DataMetadataModule' },
  { path: 'data_metadatadir_mis', loadChildren: 'src/app/module/form/data/metadata/data.directory.module#DataMetadataDirectoryModule' },
  { path: 'data_datadefin_mis', loadChildren: 'src/app/module/form/data/definition/data.definition.module#DataDefinitionModule' },
  // 服务 - 专题数据
  { path: 'data_indexclumn_mis', loadChildren: 'src/app/module/map/special/indexclumn.module#IndexclumnModule' },
  { path: 'data_indexdata_mis', loadChildren: 'src/app/module/map/special/indexdata.module#IndexdataModule' },
  { path: 'data_specialreport_mis', loadChildren: 'src/app/module/map/special/special.report.module#SpecialReportModule' },
  { path: 'data_reportdictionary_mis', loadChildren: 'src/app/module/map/special/report.dictionary.module#ReportDictionaryModule' },

  // 我的授权
  { path: 'root_mycode_mis', loadChildren: 'src/app/module/saas/token/tenant.token.module#TenantTokenModule' },
  {
    path: 'root_myauthorization_mis',
    loadChildren: 'src/app/module/map/map/authorization/myauthorization/myauthorization.module#MyauthorizationModule'
  },
  { path: 'root_examine_mis', loadChildren: 'src/app/module/map/map/authorization/examine/examine.module#ExamineModule' },

  // 团队
  { path: 'users_user_mis', loadChildren: 'src/app/module/manage/users/user/user.component.module#ManageUserModule' },
  { path: 'users_userinfo_mis', loadChildren: 'src/app/module/manage/users/user/user.info.module#UserInfoModule' },
  { path: 'users_role_mis', loadChildren: 'src/app/module/manage/users/role/role.module#UserRoleModule' },
  { path: 'users_entrust_mis', loadChildren: 'src/app/module/manage/users/entrust/entrust.module#EntrustModule' },
  { path: 'users_department_mis', loadChildren: 'src/app/module/manage/org/department/org.department.module#OrgDepartmentModule' },
  {
    path: 'users_operatingpost_mis',
    loadChildren: 'src/app/module/manage/org/operating/org.operating.post.module#OrgOperatingPostModule'
  },
  { path: 'users_position_mis', loadChildren: 'src/app/module/manage/org/position/org.position.module#OrgPositionModule' },
  { path: 'users_workinggroup_mis', loadChildren: 'src/app/module/manage/org/working/org.working.group.module#OrgWorkingGroupModule' },
  // 表单 - 数据推送
  { path: 'tools_synconfig_mis', loadChildren: 'src/app/module/form/syn/data.syn.config.module#DataSynConfigModule' },
  { path: 'tools_syn_mis', loadChildren: 'src/app/module/form/syn/data.syn.module#DataSynModule' },
  // 工具
  { path: 'tools_syntools_mis', loadChildren: 'src/app/module/map/offline/manage/syn.manage.module#SynManageModule' },
  { path: 'tools_synlog_mis', loadChildren: 'src/app/module/map/offline/log/syn.log.module#SynLogModule' },
  {
    path: 'tools_orgadmin_mis',
    loadChildren: 'src/app/module/manage/org/administrative/org.administrative.module#OrgAdministrativeModule'
  },
  { path: 'tools_admin_mis', loadChildren: 'src/app/module/map/config/administrative/map.administrative.module#MapAdministrativeModule' },
  { path: 'tools_analysis_mis', loadChildren: 'src/app/module/map/config/analysis/data.analysis.module#DataAnalysisModule' },
  { path: 'tools_attribute_mis', loadChildren: 'src/app/module/map/config/attribute/map.attribute.module#MapAttributeModule' },

  // SAAS
  { path: 'saas_regservice_mis', loadChildren: 'src/app/module/saas/reg/service/reg.service.module#RegServiceModule' },
  { path: 'saas_regmenu_mis', loadChildren: 'src/app/module/saas/reg/menu/reg.menu.module#RegMenuModule' },
  { path: 'saas_regdata_mis', loadChildren: 'src/app/module/saas/reg/data/reg.data.module#RegDataModule' },
  { path: 'saas_regmaplayer_mis', loadChildren: 'src/app/module/saas/reg/maplayer/reg.maplayer.module#RegMapLayerModule' },
  { path: 'saas_regmapextent_mis', loadChildren: 'src/app/module/saas/reg/mapextent/reg.mapextent.module#RegMapExtentModule' },
  { path: 'saas_reginterface_mis', loadChildren: 'src/app/module/saas/reg/interface/reg.interface.module#RegInterfaceModule' },
  { path: 'saas_order_mis', loadChildren: 'src/app/module/saas/order/tenant.order.module#TenantOrderModule' },
  { path: 'saas_tenant_mis', loadChildren: 'src/app/module/saas/user/tenant.user.module#TenantUserModule' },
  // SAAS-资源目录
  { path: 'saas_resource_mis', loadChildren: 'src/app/module/map/map/service/resource/service.resource.module#ServiceResourceModule' },
  // SAAS-运维 - 安全审计
  { path: 'saas_logs_mis', loadChildren: 'src/app/module/manage/security/logs/sso.logs.module#SsoLogsModule' },
  { path: 'saas_lineuser_mis', loadChildren: 'src/app/module/manage/security/line/user.component.module#LineUserModule' },
  // SAAS - APP运维
  { path: 'saas_appversion_mis', loadChildren: 'src/app/module/manage/app/version.module#VersionModule' },
  { path: 'saas_appbook_mis', loadChildren: 'src/app/module/manage/app/appbook.module#AppbookModule' },
  { path: 'saas_appinfo_mis', loadChildren: 'src/app/module/manage/app/appinfo.module#AppInfoModule' },

  // 门户 - 统一待办
  { path: 'protal_worklist_mis', loadChildren: 'src/app/module/protal/work/portal.worklist.module#PortalWorklistModule' },
  { path: 'protal_work_mis', loadChildren: 'src/app/module/protal/work/portal.work.module#PortalWorkModule' },
  { path: 'protal_test_mis', loadChildren: 'src/app/module/protal/work/portal.test.module#PortalTestModule' },
  // 门户 - 通知公告
  { path: 'protal_notice_mis', loadChildren: 'src/app/module/protal/notice/portal.notice.module#PortalNoticeModule' },
  { path: 'protal_noticeinfo_mis', loadChildren: 'src/app/module/protal/notice/portal.notice.info.module#PortalNoticeInfoModule' },
  // 门户 - 配置
  { path: 'protal_site_mis', loadChildren: 'src/app/module/protal/config/portal.site.module#PortalSiteModule' },
  { path: 'protal_column_mis', loadChildren: 'src/app/module/protal/config/portal.column.module#PortalColumnModule' },
  { path: 'protal_subject_mis', loadChildren: 'src/app/module/protal/config/portal.subject.module#PortalSubjectModule' },
  { path: 'protal_msgclass_mis', loadChildren: 'src/app/module/protal/config/portal.message.class.module#PortalMessageClassModule' },
  { path: 'protal_sensitive_mis', loadChildren: 'src/app/module/protal/config/portal.sensitive.module#PortalSensitiveModule' },
  // 门户 - 内容
  { path: 'protal_link_mis', loadChildren: 'src/app/module/protal/content/portal.link.module#PortalLinkModule' },
  { path: 'protal_msg_mis', loadChildren: 'src/app/module/protal/content/portal.message.board.module#PortalMessageBoardModule' },
  {
    path: 'protal_msginfo_mis',
    loadChildren: 'src/app/module/protal/content/portal.message.board.info.module#PortalMessageBoardInfoModule'
  },
  { path: 'protal_doc_mis', loadChildren: 'src/app/module/protal/content/portal.document.module#PortalDocumentModule' },
  {
    path: 'protal_docinfo_mis',
    loadChildren: 'src/app/module/protal/content/portal.document.info.module#PortalDocumentInfoModule'
  },

  // 错误处理
  { path: 'sys_safe_mis', loadChildren: 'src/app/module/error/safe.module#SafeModule' },
  { path: '**', loadChildren: 'src/app/module/error/pagenotfound.module#PageNotFoundModule' }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, {
    useHash: true,
    scrollPositionRestoration: 'top',
  })],
  exports: [RouterModule]
})
export class AppRoutingModule { }
